#ifndef __DL_CH__
#define __DL_CH__
#include "IO_LINK_Global_Param.h"
#include "Type_Define.h"
typedef enum{
  CH_Inactive_0,
  CH_Idle_1,
  CH_MasterCommand_2
}CH_STATE_TYPE;

extern CH_STATE_TYPE CH_STATE[PORT_NUM];

void Event_DL_Control_PDOUT(uint8_t Port);
 
void Event_PDInStatus(uint8_t Port);
void Event_CH_Conf_ACTIVE(uint8_t Port);

void Event_CH_Conf_INACTIVE(uint8_t Port);
void Event_PDInStatus(uint8_t Port);

void Event_DL_Control_PDOUT(uint8_t Port);
void Event_DL_Write_DEVICEMODE(uint8_t Port);
void Event_CommandTrig(uint8_t Port);
void Event_CH_DL_Write_DEVICEMODE(uint8_t Port);
void DL_CH_Init(void);

void DL_CH_T4(uint8_t Port);
#endif


